<script type="text/javascript" src="<?php echo Yii::app()->baseUrl; ?>/media/js/swfobject.js"></script>
<ul>
    <?php foreach ($models as $i => $model): ?>
    <li style="width: 115px; margin: 5px 0px; float: left; text-align: center;">
        <div id="case_p_<?php echo $i; ?>">This movie requires Flash Player 9</div>
        <script type="text/javascript">swfobject.embedSWF("<?php echo Yii::app()->baseUrl; ?>/media/swfoto2.swf?image=<?php echo $model->thumbnailSource; ?>&roundCorner=10", "case_p_<?php echo $i; ?>", "96", "96", "9", "", {}, {wmode: "window", menu: "true", quality: "high", bgcolor: "null", allowFullScreen: "true"}, {});</script>
    </li>
    <?php endforeach;?>
</ul>
